package com.gy.yemall.yemallproduct.feign;

import com.gy.common.to.BoundsTo;
import com.gy.common.to.SkuReductionTo;
import com.gy.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("yemall-coupon")
public interface CouponFeignService {

    @PostMapping("/yemallcoupon/spubounds/save")
    R saveBounds(@RequestBody BoundsTo boundsTo);

    @PostMapping("/yemallcoupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
